<extend name="Public/base"/>
<block name="body">
	<link rel="stylesheet" href="/static/backend/css/report.css">
<div class="page-crumb">
	<div class="ui-ctrl ui-crumb"><span class="ui-crumb-node ui-crumb-node-first ui-crumb-node-last">应用管理</span></div>
</div>


	<div class="layui-main">
		<div class="list-action">
			<a class="ui-link skin-add-link" href="javascript:;" onclick="PopModel.openFrame('/Adsense/create');" target="">新建广告位</a>
		</div>
	</div>

	<div class="page-crumb">
		<div class="layui-form-item">
			<label class="layui-form-label">选择应用：</label>
			<div class="layui-input-inline">
				<select name="apply_classify" lay-filter="">
					<option value="">请选择...</option>
				</select>
			</div>
			<label class="layui-form-label">广告位类型：</label>
			<div class="layui-input-inline">
				<select name="apply_classify" lay-filter="">
					<option value="">请选择</option>
					<option value="1">640*100横幅</option>
					<option value="2">640*200横幅</option>
					<option value="3">插屏</option>
					<option value="4">开屏</option>
					<option value="5">分享墙</option>
					<option value="6">信息流</option>>
				</select>
			</div>
			<label class="layui-form-label">广告位状态：</label>
			<div class="layui-input-inline">
				<select name="apply_classify" lay-filter="">
					<option value="">请选择...</option>
					<option value="1">待审核</option>
					<option value="2">待上传</option>
					<option value="3">审核拒绝</option>
					<option value="4">生效中</option>
					<option value="5">暂停中</option>
				</select>
			</div>
		</div>

		<!-- 数据列表 -->
		<table class="layui-table list-content-table" lay-skin="nob">
			<colgroup>
				<col width="20">
				<col width="100">
				<col width="150">
				<col width="200">
				<col width="150">
				<col width="150">
				<col width="150">
				<col width="100">
				<col width="100">
				<col width="150">
				<col width="100">
				<col width="100">
			</colgroup>
			<thead class="list-table-head">
			<tr>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text ui-table-hcell-text-first">
						<input type="checkbox" class="ui-table-select-all" data-index="">
					</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">应用名称</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">接入方式</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">广告位名称</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">广告位类型</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">状态</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">创建时间</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">广告位ID</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">收入(RMB)</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">操作</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">广告开关</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">接收补余广告</div>
				</th>

			</tr>
			</thead>

			<tbody class="list-table-body">
			<foreach name="data" item="value">
				<tr>
					<td class="ui-table-cell">
						<div class="ui-table-cell-text">
							<input type="checkbox" class="ui-table-multi-select" data-id="{$value.id}">
						</div>
					</td>
					<td class="ui-table-cell">
						<div class="ui-table-cell-text">
							{$value.apply_name}
						</div>
					</td>
					<td class="ui-table-cell">
						<div class="ui-table-cell-text">
							<if condition="$value.access_mode eq 1">
								<span class="table-status-activated">SDK</span>
								<elseif condition="$value.access_mode eq 2"/>
								<span class="table-status-inactive">API</span>
							</if>
						</div>
					</td>
					<td class="ui-table-cell"><div class="ui-table-cell-text">{$value.code_name}</div></td>
					<td class="ui-table-cell">
						<div class="ui-table-cell-text">
							<if condition="$value.code_type eq 1">
								<span class="table-status-activated">640*100横幅</span>
								<elseif condition="$value.code_type eq 2"/>
								<span class="table-status-inactive">640*200横幅</span>
								<elseif condition="$value.code_type eq 3"/>
								<span class="table-status-inactive">插屏</span>
								<elseif condition="$value.code_type eq 4"/>
								<span class="table-status-inactive">开屏</span>
								<elseif condition="$value.code_type eq 5"/>
								<span class="table-status-inactive">分享墙</span>
								<elseif condition="$value.code_type eq 6"/>
								<span class="table-status-inactive">信息流</span>
							</if>
						</div>
					</td>

					<td class="ui-table-cell">
						<div class="ui-table-cell-text">
							<if condition="$value.status eq 1">
								<span class="table-status-activated">待审核</span>
								<elseif condition="$value.status eq 2"/>
								<span class="table-status-inactive">待上传</span>
								<elseif condition="$value.status eq 3"/>
								<span class="table-status-inactive">审核拒绝</span>
								<elseif condition="$value.status eq 4"/>
								<span class="table-status-inactive">生效中</span>
								<elseif condition="$value.status eq 5"/>
								<span class="table-status-inactive">暂停中</span>
							</if>
						</div>
					</td>
					<td class="ui-table-cell"><div class="ui-table-cell-text">{$value.update_time|date="Y-m-d H:i",###}</div></td>
					<td class="ui-table-cell"><div class="ui-table-cell-text">{$value.id}</div></td>
					<td class="ui-table-cell"><div class="ui-table-cell-text">{$value.use_amount}</div></td>
					<td class="ui-table-cell">
						<div class="ui-table-cell-text">
							<span class="table-operation" data-command="remove" data-command-args="{$value.id}">删除</span>
						</div>
					</td>
					<td class="ui-table-cell">
						<div class="ui-table-cell-text">
							<if condition="$value.access_mode eq 1">
								<span class="table-status-activated">是</span>
								<elseif condition="$value.access_mode eq 0"/>
								<span class="table-status-inactive">否</span>
							</if>
						</div>
					</td>
					<td class="ui-table-cell">
						<div class="ui-table-cell-text">
							<if condition="$value.complement eq 1">
								<span class="table-status-activated">是</span>
								<elseif condition="$value.complement eq 0"/>
								<span class="table-status-inactive">否</span>
							</if>
						</div>
					</td>
				</tr>
			</foreach>
			</tbody>

		</table>
		{$page}
		<script src="__BACKEND_STATIC__/js/Adsense/adsense.js"></script>
	</div>
</block>